import request from '@/utils/request'

export function login(data) {
  const {
    account,
    password
  } = data
  return request({
    // url: '/youanmi/wuye/user/login',
    url: '/user/login',
    method: 'post',
    data: {
      account,
      password
    }
  })
}

export function getUserInfo(token) {
  return request({
    url: `/user/info?miva=123`,
    method: 'get',
    params: { token }
  })
}
